//横杠命名转化为驼峰命名
export type CamelCase<
  T extends string,
  F extends string = ""
> = T extends `${infer L}${infer R}`
  ? CamelCase<
      L extends "-" ? Capitalize<R> : R,
      L extends "-" ? `${F}` : `${F}${L}`
    >
  : F;
type CamelCase2<
  T extends string,
  F extends string = ""
> = T extends `${infer L}-${infer D}${infer R}`
  ? CamelCase2<R, `${F}${L}${Capitalize<D>}`>
  : `${Capitalize<`${F}${T}`>}`;


  
type A1 = CamelCase<"hangle-hong-zhang">;
type A2 = CamelCase2<"hangle-hong-zhang">;

export {};
